import { createApp } from 'vue'
import { createPinia } from 'pinia'
import "@nutui/nutui-taro/dist/style.css";
import { Button, Cell, Address, Cascader, Input } from "@nutui/nutui-taro";
import { IconFont } from "@nutui/icons-vue-taro";
import './assets/font/iconfont.css'
import { Tabs, TabPane } from '@nutui/nutui-taro'
import { Swipe } from '@nutui/nutui-taro'
import { Swiper, SwiperItem } from '@nutui/nutui-taro'
import { Rate } from '@nutui/nutui-taro'


Taro.showShareMenu({
  menus: ['shareAppMessage', 'shareTimeline']
});

Taro.useShareAppMessage(res => {
  return {
    title: "允久防水",
    path: "/pages/index/index", // 路由路径
    imageUrl: "https://docs.taro.zone/img/logo-taro.png"
  };
});

Taro.useShareTimeline(res => {
  return {
    title: "允久防水",
    path: "/pages/index/index", // 路由路径
    imageUrl: "https://docs.taro.zone/img/logo-taro.png"
  };
});

// import { Toast } from "@nutui/nutui-taro";

import './app.scss'
import Taro from '@tarojs/taro';

const App = createApp({})

App.use(createPinia());
App.use(Button);
App.use(Cell);
App.use(Address);
App.use(IconFont);
App.use(Cascader);
App.use(Input);
App.use(Tabs);
App.use(TabPane);
App.use(Swipe);
App.use(Swiper);
App.use(SwiperItem);
App.use(Rate);

// Taro.hideLoading()
// App.use(Toast);

export default App
